<?php
/**
 * @param ParamSirtBasis $ParamSirtBasis
 */
class ParamSirtFavorite extends AppModel {
	
  var $name = 'ParamSirtFavorite';

  var $validate = array(

		'name' => array(
        'notempty' => array(
          'rule' => array('notempty'),
          //'message' => 'Your custom message here',
          //'allowEmpty' => false,
          //'required' => false,
          //'last' => false, // Stop validation after this rule
          //'on' => 'create', // Limit validation to 'create' or 'update' operations
        ),
        'maxlength' => array(
          'rule' => array('maxlength', 40),
          'message' => 'Maximum length of this field is 40.',
          //'allowEmpty' => false,
          //'required' => false,
          //'last' => false, // Stop validation after this rule
          //'on' => 'create', // Limit validation to 'create' or 'update' operations
        ),
        'isUnique' => array(
            'rule' => 'isUnique',        
            'message' => 'This value has already been taken. Select a unique value.'
        )
		),
	);
  
  
  
  
  
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'ParamSirtBasis' => array(
    //'ParamSirtBase' => array(
			//'className' => 'ParamSirtBase',
      'className' => 'ParamSirtBasis',  
        
			'foreignKey' => 'param_sirt_base_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);
}
